Skip to content

Improve e2e test stability in CI#103

Merged
creydr merged 3 commits into
functions-dev:mainfrom
creydr:improve-e2e-test-stability
Apr 28, 2026
Merged

Improve e2e test stability in CI#103
creydr merged 3 commits into
functions-dev:mainfrom
creydr:improve-e2e-test-stability

Conversation

@creydr
Copy link
Copy Markdown
Collaborator

@creydr creydr commented Apr 28, 2026

  • Free ~14GB disk on GitHub runners (up from ~2GB) by removing additional unused pre-installed toolchains
  • Reduce KinD cluster from 3 to 2 nodes to lower disk and resource pressure
  • Add kubectl_apply_with_retry with exponential backoff for external URL fetches during cluster setup to survive transient 502 errors
  • Increase func deploy retries from 3/5s flat to 5/exponential backoff (10s-80s) to handle in-cluster-dialer pod instability
  • Isolate pack builder PACK_HOME for parallel test execution
  • Allow pre-pull of builder images to fail gracefully

- Free ~14GB disk on GitHub runners (up from ~2GB) by removing additional
  unused pre-installed toolchains
- Reduce KinD cluster from 3 to 2 nodes to lower disk and resource pressure
- Add kubectl_apply_with_retry with exponential backoff for external URL
  fetches during cluster setup to survive transient 502 errors
- Increase func deploy retries from 3/5s flat to 5/exponential backoff
  (10s-80s) to handle in-cluster-dialer pod instability
@creydr creydr force-pushed the improve-e2e-test-stability branch from 4a75d17 to 00151b3 Compare April 28, 2026 12:26
creydr added 2 commits April 28, 2026 15:43
Parallel func deploy calls with the pack builder corrupt the shared
~/.pack/volume-keys.toml file, causing deterministic failures. Create
a per-deploy temporary PACK_HOME directory when using the pack builder
via the new EnvVars deploy option.
The pre-pull step is an optimization to avoid parallel pull contention
during tests. If it fails due to transient network issues, the images
will be pulled on-demand during the test run instead.
@creydr creydr enabled auto-merge April 28, 2026 19:05
@creydr creydr added this pull request to the merge queue Apr 28, 2026
Merged via the queue into functions-dev:main with commit a8c730c Apr 28, 2026
23 of 24 checks passed
@creydr creydr deleted the improve-e2e-test-stability branch April 28, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant